package com.example.zhugenew;

import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.ButterKnife;

public class HendlinsActivity extends AppCompatActivity {

    @BindView(R.id.web)
    WebView web;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hendlins);
        ButterKnife.bind(this);

        ArrayList<String> pao = getIntent().getStringArrayListExtra("pao");
        int position = getIntent().getIntExtra("position", 0);
        web.loadUrl(pao.get(position));
        web.setWebViewClient(new WebViewClient());
    }
}